package com.ds.dsm.view.nav.service.field;

import com.ds.config.ResultModel;
import com.ds.dsm.view.config.form.field.group.FieldComboGroup;
import com.ds.dsm.view.config.form.field.group.FieldInputGroup;
import com.ds.esd.custom.api.annotation.APIEventAnnotation;
import com.ds.esd.custom.enums.CustomMenuItem;
import com.ds.esd.custom.module.annotation.ModuleAnnotation;
import com.ds.esd.custom.nav.annotation.NavGroupViewAnnotation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/dsm/view/config/form/field/")
public class ViewFieldComboService {

    @RequestMapping(method = RequestMethod.POST, value = "Fieldinput")
    @NavGroupViewAnnotation(autoSave = true)
    @ModuleAnnotation( caption = "普通输入框")
    @APIEventAnnotation(bindMenu = {CustomMenuItem.editor, CustomMenuItem.add})
    @ResponseBody
    public ResultModel<FieldInputGroup> getFieldinput(String sourceClassName, String projectId, String fieldname) {
        return new ResultModel<>();
    }
}
